[JQuery] Highlight a Radio field and then pop up an input text box field

Posted by kwokwai on Stack Overflow See other posts from Stack Overflow or by kwokwai
Published on 2010-05-12T19:32:56Z Indexed on 2010/05/12 19:34 UTC
Read the original article Hit count: 227

Filed under:

Hi all,

I am trying to make some dynamic effect to a HTML page using JQuery.
1.
When the user clicks a Radio feild, the field will be highlighted.
2.
When the user clicks the Radio 'Man',
a Input text box will be provided immeditely just below it.

Here is my simple HTML page, but I don't know how to do with the JQuery part:

<Table>
<TR>
 <TD>Gender</TD>
 <TD>
 Man: <INPUT type=radio name="gender" value="M"><Br/>
 Woman: <INPUT type=radio name="gender" value="F">
 </TD>
</TR>
<?Table>

© Stack Overflow or respective owner

Related posts about jquery-selectors